:root {
    --vue-green: #42b983;
    --vue-green-light: #eafaf1;
    --vue-green-dark: #359e6d;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --white: #fff;
    --gray-light: #f5f5f5;
    --danger: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--vue-green);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: var(--vue-green-dark);
}

main {
    padding: 2rem 0;
    min-height: calc(100vh - 130px);
}

.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--vue-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background-color: var(--vue-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--vue-green-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--vue-green);
    color: var(--vue-green);
}

.btn-outline:hover {
    background-color: var(--vue-green-light);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    margin-right: 15px;
}

.btn-danger:hover {
    background-color: #cc0000;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.pagination-info {
    color: var(--text-primary);
    font-size: 14px;
}

.pagination button:disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--vue-green);
    box-shadow: 0 0 0 2px rgba(66, 185, 131, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.question-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--vue-green-light);
    color: var(--vue-green-dark);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.option {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    background-color: var(--gray-light);
}

.option.selected {
    border-color: var(--vue-green);
    background-color: var(--vue-green-light);
}

.option.correct {
    border-color: #00C851;
    background-color: rgba(0, 200, 81, 0.1);
}

.option.incorrect {
    border-color: var(--danger);
    background-color: rgba(255, 68, 68, 0.1);
}

.answer-explanation {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--vue-green-light);
    border-radius: 4px;
    border-left: 3px solid var(--vue-green);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.tab-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    border-bottom-color: var(--vue-green);
    color: var(--vue-green);
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.file-upload {
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: var(--vue-green);
    background-color: var(--vue-green-light);
}

.file-upload input {
    display: none;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--vue-green);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--vue-green-light);
    color: var(--vue-green-dark);
}

.table tr:hover {
    background-color: var(--gray-light);
}

.table-actions {
    display: flex;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-danger {
    background-color: rgba(255, 68, 68, 0.1);
    color: var(--danger);
}

.badge-type {
    background-color: var(--vue-green-light);
    color: var(--vue-green-dark);
    margin-left: 5px;
}

.settings-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-title {
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--vue-green-dark);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

footer {
    background-color: var(--vue-green);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--vue-green);
    width: 0%;
    transition: width 0.3s ease;
}

.import-template {
    margin-top: 15px;
    font-size: 0.9rem;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-backdrop.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--vue-green);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transform: translateX(120%);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.active {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #00C851;
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.error-log {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
    border-left: 4px solid var(--danger);
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}